package Test;

/**
 * 鸟类
 * 
 * @author Administrator
 *
 */
public class Bird implements Flight {
	private String name;

	public Bird(String name) {
		this.name = name;
	}

	public void fly() {
		System.out.println(name + "属于鸟类");
		System.out.println("消耗能量，用翅膀飞行");
	}

}
